package sevensoft.行为型模式.观察者模式;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public class User implements Observer{

    private String name;

    @Override
    public void update(String msg) {
        System.out.println(name + "-" + msg);
    }
}
